package jd.se.login;

import org.apache.ibatis.annotations.Select;

/**
 * @author SunJiahao
 * @date 2021-05-15 14:55
 */
public interface LoginDao {
    @Select("select count(u_id) from user where u_id = #{u_id} and password = #{password}")
    int findUserCountByIdAndPwd(LoginDto dto);

    @Select("select count(a_id) from admin where a_id = #{u_id} and a_pass = #{password}")
    int checkAdmin(LoginDto dto);
}
